﻿@{
    ViewBag.Title = "Register";
    Layout = "../Shared/_Layout.cshtml";
}
<script>
  
</script>
<div class="reg-form">
    @using (Html.BeginForm("Register", "Login", FormMethod.Post, new {  id = "reg" }))
{
        <div class="editor-label">
            电子邮件
        </div>   <div class="editor-field">
            @Html.TextBox("email", null, new { datatype = "e", nullmsg = "请输入电子邮件", errormsg = "请输入正确的电影邮件", sucmsg = " ", ajaxurl = @Url.Action("IsReg")+"?type=email"  }) <div class="Validform_checktip"></div>
        </div>
        <div class="editor-label">
            用户名
        </div>   <div class="editor-field">
            @Html.TextBox("Uid", null, new { datatype = @"/^([\u4e00-\u9fa5]{2,8})$|^(?!\d+$)(\w{3,15}[a-z0-9])$/ ", nullmsg = "请输入用户名", errormsg = "用户名4-16个字符(包括4、16)或2-8个汉字，且英文小写、汉字、数字、下划线，不能全部是数字", sucmsg = " ", ajaxurl = @Url.Action("IsReg")+"?type=uid"   }) <div class="Validform_checktip"></div>
        </div>
        <div class="editor-label">
            手机号码
        </div>   <div class="editor-field">
            @Html.TextBox("Mobile", null, new { datatype = "m", nullmsg = "请输入手机号码", errormsg = "请输入正确的手机号码", sucmsg = " ",ajaxurl = @Url.Action("IsReg")+"?type=mobile"   }) <div class="Validform_checktip"></div>
        </div>
        <div class="editor-label">
            密 码
        </div>
        <div class="editor-field">
            @Html.Password("Password", null, new { @class = "input normal", datatype = "*6-20", nullmsg = "请输入密码", errormsg = "密码范围在6-20位之间", sucmsg = " " })
            <div class="Validform_checktip"></div>
        </div> 
        <div class="editor-label">
            确认密码
        </div>
        <div class="editor-field">
            @Html.Password("ConfirmPassword", null, new { @class = "input normal", datatype = "*", recheck = "Password", nullmsg = "请再输入一次密码", errormsg = "两次输入的密码不一致", sucmsg = " " })
            <div class="Validform_checktip"></div>
        </div> 
    
        <div class="editor-agreement">
            <input type="checkbox" checked="checked" />
            我已经阅读并接收本网站协议<a href="#">用户协议</a>
        </div>
        <div class="reg-submit">
            <input id="btnSubmit" type="submit" value="注册" />
        </div>
}
</div>
